import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SRole
    
    export  class SRole extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SRole();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.level);
            arg1.writeLong(this.experience);
            arg1.writeInt(this.career);
            arg1.writeInt(this.careerSecond);
            arg1.writeInt(this.careerEnable);
            arg1.writeInt(this.life);
            arg1.writeInt(this.mana);
            arg1.writeInt(this.growthPower);
            arg1.writeInt(this.growthAgile);
            arg1.writeInt(this.growthHabitus);
            arg1.writeInt(this.growthBrains);
            arg1.writeInt(this.growthSpiritual);
            arg1.writeInt(this.energy);
            arg1.writeInt(this.nimbus);
            arg1.writeInt(this.accumulation);
            arg1.writeInt(this.newEnergy);
            arg1.writeInt(this.newEnergyMax);
            arg1.writeInt(this.reserve3);
            arg1.writeInt(this.reserve4);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.level = arg1.readInt();
            this.experience = arg1.readLong();
            this.career = arg1.readInt();
            this.careerSecond = arg1.readInt();
            this.careerEnable = arg1.readInt();
            this.life = arg1.readInt();
            this.mana = arg1.readInt();
            this.growthPower = arg1.readInt();
            this.growthAgile = arg1.readInt();
            this.growthHabitus = arg1.readInt();
            this.growthBrains = arg1.readInt();
            this.growthSpiritual = arg1.readInt();
            this.energy = arg1.readInt();
            this.nimbus = arg1.readInt();
            this.accumulation = arg1.readInt();
            this.newEnergy = arg1.readInt();
            this.newEnergyMax = arg1.readInt();
            this.reserve3 = arg1.readInt();
            this.reserve4 = arg1.readInt();
            return;
        }

        public /* const */_type: int=12002;

        public /* var */level: int;

        public /* var */experience: number;

        public /* var */career: int;

        public /* var */careerSecond: int;

        public /* var */careerEnable: int;

        public /* var */life: int;

        public /* var */mana: int;

        public /* var */growthPower: int;

        public /* var */growthAgile: int;

        public /* var */growthHabitus: int;

        public /* var */growthBrains: int;

        public /* var */growthSpiritual: int;

        public /* var */energy: int;

        public /* var */nimbus: int;

        public /* var */accumulation: int;

        public /* var */newEnergy: int;

        public /* var */newEnergyMax: int;

        public /* var */reserve3: int;

        public /* var */reserve4: int;

        public static /* var */_regist: SRole;
    }

            SRole._regist = new SRole(true);
        